package com.example.demo.utils;


import org.apache.commons.codec.digest.DigestUtils;


//加密
public class MD5Util {

    public static String  md5Source(String password){
       return  DigestUtils.md5Hex(password);
    }

    public  static String md5Last(String password,String salt){
        return DigestUtils.md5Hex(md5Source(password)+salt);
    }
}
